﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ColinHan.BlamBlam.Client.Entities;
using ColinHan.BlamBlam.Client.Models;
using ColinHan.BlamBlam.Client.ViewModels;

namespace ColinHan.BlamBlam.Client.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var currentTaskViewModel = new CurrentTaskViewModel();
            currentTaskViewModel.CurrentTask = new Task();
            currentTaskViewModel.CurrentTask.Subject = "TestTask";
            currentTaskViewModel.CurrentTask.Description = "这是一个测试任务。细节一大堆，就是没内容。";

            var currentTaskView = new CurrentTaskView();
            currentTaskView.DataContext = currentTaskViewModel;
            this.RootGrid.Children.Add(currentTaskView);
        }
    }
}
